package com.lanou3g.k12api.utils;

public class K12ResultUtils {
    private static final int DEFAULT_SUCCESS_CODE = 200;
    private static final String DEFAULT_SUCCESS_MESSAGE = "ok";

    public static K12Result ok() {
        K12Result k12Result = new K12Result();
        k12Result.setCode(DEFAULT_SUCCESS_CODE);
        k12Result.setMessage(DEFAULT_SUCCESS_MESSAGE);
        return k12Result;
    }

    public static K12Result ok(Object data) {
        K12Result k12Result = ok();
        k12Result.setData(data);
        return k12Result;
    }
}
